package Demo;

public class Poker {//做套昆特牌怎么样？
    private String suit;
    private int rank;

    public Poker(String suit,int rank){//构造方法
        this.suit = suit;
        this.rank = rank;
    }

    public String getSuit() {
        return suit;
    }

    public void setSuit(String suit) {
        this.suit = suit;
    }

    public int getRank() {
        return rank;
    }

    public void setRank(int rank) {
        this.rank = rank;
    }

    @Override
    public String toString() {
        return "Poker{" +
                "suit = '" + suit +
                '\'' + ",rank = " + rank +
                '}';
    }
}
